package com.wechar_rpa.service;

import com.wechar_rpa.model.ChatMessage;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class DesktopAppService {

    private final List<ChatMessage> pendingReplies = new ArrayList<>();

    public void addPendingReply(ChatMessage message) {
        pendingReplies.add(message);
    }

    public List<ChatMessage> getPendingReplies() {
        return new ArrayList<>(pendingReplies);
    }

    public void clearPendingReplies() {
        pendingReplies.clear();
    }
}